package controll

import (
	"myOJ/controll/homepage"
	"myOJ/controll/loginpage"
	"myOJ/controll/postproblem"
	"myOJ/controll/problems"
	"net/http"
)

func ControllInit() {
	http.HandleFunc("/", homepage.HomePage)

	http.HandleFunc("/problems", problems.ProblemsPage)
	http.HandleFunc("/codePost", problems.CodePost)

	http.HandleFunc("/login", loginpage.LoginPage)
	http.HandleFunc("/logining", loginpage.Logining)
	http.HandleFunc("/loginError", loginpage.LoginError)

	http.HandleFunc("/postProblem", postproblem.PostProblemPage)
	http.HandleFunc("/posting", postproblem.Posting)
}
